package JavaSE.CODE.javaIO;

import java.io.FileWriter;

public class FileWriterDemo {
    public static void main(String[] args) throws Exception {
        //
        FileWriter fileWriter = new FileWriter("D:\\FFF.txt");
        //
        for(int i=0;i<10;i++){
            fileWriter.write("java is the best\n");
        }
        //自动保存
        fileWriter.close();







    }



}
